package com.uwlaser.service.mapper;

import com.uwlaser.base.CommonMapper;
import com.uwlaser.domain.DataMain;
import com.uwlaser.service.dto.DataMainDto;
import com.uwlaser.service.dto.DataMainQueryParam;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author zk-Qin
* @date 2022-05-11
*/
@Repository
public interface DataMainMapper extends CommonMapper<DataMain> {

    /**
     * 批量修改
     * */
    int updateBatchDataMain(List<DataMainDto> dataMainList);

    List<DataMainDto> selectProductSn(DataMainQueryParam query);

    List<DataMainDto> selectPackSn(DataMainQueryParam query);

    List<DataMainDto> selectDailyOutput(DataMainQueryParam param);

    List<DataMainDto> selectYearOutput(DataMainQueryParam param);

    DataMainDto selectPassRate(DataMainQueryParam param);

    /*
    * 查询当前产品型号的最新的PACK产品记录
    * */
    DataMainDto selectLatestDataMain(DataMainQueryParam param);
}
